import request from '@/utils/request'

export function getTree(data) {
  return request({
    url: 'course/manage/treeCourseCataloglist',
    method: 'post',
    data
  })
}

export function treeCourseCataloglist(data) { // 获取章节目录树
  return request({
    url: '/course/manage/treeCourseCataloglist',
    method: 'post',
    data
  })
}

export function addCourseCatalog(data) { // 新增章节目录
  return request({
    url: '/course/manage/addCourseCatalog',
    method: 'post',
    data
  })
}

export function editCourseCatalog(data) { // 编辑当前目录
  return request({
    url: '/course/manage/editCourseCatalog',
    method: 'post',
    data
  })
}

export function deleteCourseCatalogById(data) { // 编辑当前目录
  return request({
    url: '/course/manage/deleteCourseCatalogById',
    method: 'post',
    data
  })
}
